package dancrawler.server.gamecmd;

import dancrawler.proto.cmd.*;
import dancrawler.server.GameHandler;
import dancrawler.server.Gameworld;

/**
 *
 */
public class ServerCmdRegister {
    
    
    public ServerCmdRegister()
    {
    }
    public static void registerHandlers(CmdHandlerRegister hreg, GameHandler gh)
    {
        
        hreg.setHandler((short)2, new CmdMove(gh, Gameworld.WEST));
        hreg.setHandler((short)3, new CmdMove(gh, Gameworld.NORTH));
        hreg.setHandler((short)4, new CmdMove(gh, Gameworld.EAST));
        hreg.setHandler((short)5, new CmdMove(gh, Gameworld.SOUTH));
        hreg.setHandler((short)11, new CmdPing(null));
        hreg.setHandler((short)13, new CmdHello(gh));
        hreg.setHandler((short)16, new CmdChatMsg(gh));
        hreg.setHandler((short)18, new CmdAttack(gh));
        hreg.setHandler((short)23, new CmdActivatePortal(gh));
    }
}
